/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.dosideas.interceptor;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 *
 * @author ldeseta
 */
public class InterceptorEjemplo implements MethodInterceptor {

    @Override
    public Object invoke(MethodInvocation mi) throws Throwable {
        System.out.println("Iniciando llamada");
        Object rval = mi.proceed();
        System.out.println("Finalizando llamada");
        return rval;
    }
}
